package com.css.util;

import javax.swing.*;

/**
 * <p>
 * -
 * </p>
 *
 * @author css
 * @since 2019/4/23
 */
public class StringUtil {
    public static boolean isEmpty(JTextField field) {
        return field == null || "".equals(field.getText());
    }

    public static boolean isEmpty(Object field) {
        return field == null || "".equals(field);
    }
}
